# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo0741
# Description:  作用域
# Author:       yzl
# Date:         2019-03-09
#-------------------------------------------------------------------------------


g_name = 'yzl' # 全局变量
l_name = 'aaa'

def hello():
    # print(l_name)
    l_name = 'abc'
    print(l_name) # 局部变量
    print('------------------')
    print(g_name)
    return None


if __name__ == '__main__':
    hello()
    print(l_name)


